package com.czy.booktest02.demos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czy.booktest02.demos.common.dtos.ResponseResult;
import com.czy.booktest02.demos.pojo.dto.CategoryUpdateDto;
import com.czy.booktest02.demos.pojo.po.BookCategory;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BookCategoryMapper extends BaseMapper<BookCategory> {
    int addCategory(String categoryName);
    int deleteCategory(Integer categoryId);
    int updateCategory(CategoryUpdateDto categoryUpdateDto);

    BookCategory  getCategory(String categoryName);
}
